/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2022-12-27 09:29:10
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-05-13 10:20:08
 * @FilePath: \report-admin\src\utils\dict-data.ts
 */

//企业审核字典
const DICT_AUDIT_STATUS = [
    { value: 0, type: 'info', label: '待审核' },
    { value: 1, type: 'success', label: '通过' },
    { value: 2, type: 'danger', label: '不通过' }
]

//使用状态
const DICT_USE_STATUS = [
    { value: 0, type: 'danger', label: '禁用' },
    { value: 1, type: 'success', label: '启用' }
]

//价格类型字典
const DICT_PRICE_TYPE = [
    { value: 1, type: 'info', label: '套餐(赠送次数)' },
    { value: 2, type: 'info', label: '充值(次数包)' },
    { value: 3, type: 'info', label: '单笔' }
]

//价格有效期
const DICT_VALIDITY = [
    { value: -1, type: 'success', label: '永久有效' },
    { value: 2, type: 'info', label: '15天' },
    { value: 3, type: 'info', label: '30天' },
    { value: 4, type: 'info', label: '60天' }
]

//企业充值订单状态字典
const DICT_ORDER_STATUS = [
    { value: 1, type: 'success', label: '正常' },
    { value: 2, type: 'danger', label: '退款中' },
    { value: 3, type: 'info', label: '已退款' }
]
//核销状态
const VERIFICATION_STATUS = [
    { value: 0, type: 'info', label: '未核销' },
    { value: 1, type: 'success', label: '已核销' }
]

//企业支付订单状态
const PAY_ORDER_STATUS = [
    { value: 0, type: 'info', label: '待付款' },
    { value: 1, type: 'success', label: '已完成' },
    { value: 2, type: 'danger', label: '已关闭' },
    { value: 3, type: 'info', label: '未支付' }
]

//企业支付类型
const PAY_TYPE_STATUS = [
    { value: 1, type: 'success', label: '微信' },
    { value: 2, type: 'danger', label: '储值扣费' },
    { value: 3, type: 'info', label: '储值赠送' },
    { value: 4, type: 'warning', label: '系统赠送' },
    { value: 5, type: '', label: '次数包' }
]

//企业支付类型
const PRODUCT_TYPE = [
    { value: 1, type: 'success', label: '出险车况' },
    { value: 2, type: 'danger', label: '维保车况' },
    { value: 3, type: 'warning', label: '新能源车况' }
]

//公告消息类型 1 系统消息 2 业务消息 3 调价信息 0 其他消息
const NOTICE_TYPE = [
    { value: 1, type: 'success', label: '系统消息' },
    { value: 2, type: 'danger', label: '业务消息' },
    { value: 3, type: 'info', label: '调价信息' },
    { value: 0, type: 'warning', label: '其他消息' }
]
//公告消息发布状态  0 待发布 1 已发布 2 已关闭
const RELEASE_STATUS = [
    { value: 0, type: 'warning', label: '待发布' },
    { value: 1, type: 'success', label: '已发布' },
    { value: 2, type: 'info', label: '已关闭' }
]

//发票的状态
const INVOICE_STATUS = [
    { value: 1, type: 'warning', label: '待开票' },
    { value: 2, type: 'success', label: '已开票' }
]

//发票类型
const INVOICE_TYPE = [
    { value: 1, type: 'success', label: '普通发票' },
    { value: 2, type: 'danger', label: '专用发票' }
]

//退款状态
const REFUND_STATUS = [
    { value: 2, type: 'success', label: '已退款' },
    { value: 1, type: 'warning', label: '待退款' }
]
//收款确认状态(0.未确认；1.已确认)
const COLLECTION_CONFIRM_STATUS = [
    { value: 1, type: 'success', label: '已确认' },
    { value: 0, type: 'info', label: '未确认' }
]
//支付状态 0.待付款；1.已支付；2.支付失败；3.已关闭 4退款中 5退款完成 6退款完成
const PAY_STATUS = [
    { value: 0, type: 'warning', label: '待付款' },
    { value: 1, type: 'success', label: '已支付' },
    { value: 2, type: 'danger', label: '支付失败' },
    { value: 3, type: 'info', label: '已关闭' },
    { value: 4, type: 'warning', label: '退款中' },
    { value: 5, type: 'success', label: '退款完成' },
    { value: 6, type: 'danger', label: '退款失败' }
]

//报告状态（0.待生成；1.成功；2.失败；3.失效）
const REPORT_STATUS = [
    { value: 1, type: 'success', label: '成功' },
    { value: 2, type: 'danger', label: '失败' },
    { value: 3, type: 'info', label: '失效' },
    { value: 0, type: 'warning', label: '待生成' }
]

export const DICT_DATA = new Map()

DICT_DATA.set('auditStatus', DICT_AUDIT_STATUS)
DICT_DATA.set('useStatus', DICT_USE_STATUS)
DICT_DATA.set('priceType', DICT_PRICE_TYPE)
DICT_DATA.set('validity', DICT_VALIDITY)
DICT_DATA.set('optStatus', DICT_ORDER_STATUS)
DICT_DATA.set('verificationStatus', VERIFICATION_STATUS)
DICT_DATA.set('storeStatus', PAY_STATUS)
DICT_DATA.set('payType', PAY_TYPE_STATUS)
DICT_DATA.set('productType', PRODUCT_TYPE)
DICT_DATA.set('noticeType', NOTICE_TYPE)
DICT_DATA.set('releaseStatus', RELEASE_STATUS)
DICT_DATA.set('invoiceStatus', INVOICE_STATUS)
DICT_DATA.set('refundStatus', REFUND_STATUS)
DICT_DATA.set('invoiceType', INVOICE_TYPE)
DICT_DATA.set('collectionConfirmStatus', COLLECTION_CONFIRM_STATUS)
DICT_DATA.set('payStatus', PAY_STATUS)
DICT_DATA.set('reportStatus', REPORT_STATUS)
